package com.zhaoyh.mapper;

import com.zhaoyh.bean.Userinfo;
import org.apache.ibatis.annotations.Param;

/**
 * @author 祥霸
 * @date 2019/2/20
 */
public interface UserinfoMapper {
    String TABLE_NAME = "userinfo";

    String SELECT_FIELDS = "entityID, username, pwd, mobile, uuid";

    /**
     * 获取用户信息
     * @author 祥霸
     * @date 2019/2/20
     * @parame [username, pwd]
     * @return com.zhaoyh.bean.Userinfo
     */
    Userinfo getUserinfo(@Param("username")String username);

    void insertUserinfo(@Param("username")String username, @Param("pwd")String pwd, @Param("mobile")String mobile, @Param("uuid")String uuid);
}
